<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="java.util.Iterator"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ taglib prefix="sec" uri="/WEB-INF/tags/shiro.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>档案功能操作权限设置</title>
<base href="<%=ViewUtil.getRequestPath(request)%>">
<jsp:include page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
<script type="text/javascript" src="avicit/im/lantop/userauthset/IframeArchiveFunctionAuthSet.js"></script>
<jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
<jsp:include page="/avicit/platform6/modules/system/commonpopup/commonSelectionHead.jsp"></jsp:include>
<script type="text/javascript">
	targetId = "${targetId}";	//所选授权维度ID
</script>
</head>
<body id="myBody" class="easyui-layout">
	<div data-options="region:'west',split:false" style="width:420px;">
		<div class="easyui-panel" title="权限设置"     
		        style="width:auto;height:auto;padding:0px;background:#fafafa;"   
		        data-options="collapsed:true,closable:false, collapsible:false"> 
 		</div>
		<!-- 菜单树 begin -->
    	<ul id="mainTree" class="easyui-tree"></ul>
    	<!-- 菜单树 end -->
    </div>
    <div data-options="region:'center',split:false" style="width:220px;">
		<!-- 权限设置资源列表 begin -->
		<div id="toolbarResource" class="datagrid-toolbar" style="height: auto; display: block;" >
			<sec:accesscontrollist  hasPermission="3" domainObject ="userauthset_IframeArchiveFunctionAuthSet_button_saveResourceConfig">
				<td width="70px;"><a title="保存" class="easyui-linkbutton" iconCls="icon-im-save" plain="true" onclick="saveResourceConfig();" href="javascript:void(0);">保存</a></td>
			</sec:accesscontrollist>
		</div>
		<table id="resourceDatagrid" class="easyui-datagrid"
			data-options="
						animate: false,
						collapsible: false,
						fitColumns: true,
						autoRowHeight: false,
						singleSelect: false,
						pagination:true,
						pageNumber:0,
						pageSize:1000, 
						pageList:[1000],
						toolbar:'#toolbarResource',
			    		striped:true,
						fit:true,
						method: 'post'
					">
			<thead>
				<tr>
					<sec:accesscontrollist hasPermission="3" domainObject="userauthset_IframeArchiveFunctionAuthSet_resourceDatagrid_funcOperationCode">
						<th data-options="field:'FUNC_OPERATION_CODE', halign:'center', hidden:true"
							title="操作代码" width="20">操作代码</th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3" domainObject="userauthset_IframeArchiveFunctionAuthSet_resourceDatagrid_funcOperationName">
						<th
							data-options="field:'FUNC_OPERATION_NAME', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
							width="200" title="操作名称">操作名称</th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3" domainObject="userauthset_IframeArchiveFunctionAuthSet_resourceDatagrid_operateAuth">
						<th
							data-options="field:'OPERATE_AUTH', halign:'center', align:'center', sortable:false,editor:{type:'text'},formatter:formatCheckbox"
							width="200" title="允许">允许</th>
					</sec:accesscontrollist>
				</tr>
			</thead>
		</table>
		<!-- 权限服务 end -->
	</div>
</body>
</html>
